package com.tencreat.domain.mall;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import com.tencreat.common.enums.BalanceBusinessType;
import com.tencreat.common.enums.BalanceTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 描述信息
 *
 * @Author yaoruiqi
 * @Company: 深圳腾创互联科技有限公司
 * @link: https://tencreat.com
 * @Date: 2023/10/27 15:57
 */

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("goods_roll_order")
public class GoodsRollOrder extends BaseEntity<GoodsRollOrder> {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 用户uuid */
    @Excel(name = "用户uuid")
    @ApiModelProperty(value= "用户uuid")
    @TableField("`uuid`")
    private Long uuid;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;

    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value= "备注")
    @TableField("`remarks`")
    private String remarks;


    @Excel(name = "开户银行")
    @ApiModelProperty(value= "开户银行")
    @TableField("`bank_name`")
    private String bankName;


    @Excel(name = "银行卡号")
    @ApiModelProperty(value= "银行卡号")
    @TableField("`bank_code`")
    private String bankCode;

    @Excel(name = "充值业务类型")
    @ApiModelProperty(value= "充值业务类型")
    @TableField("`business_type`")
    private BalanceBusinessType businessType;


    @ApiModelProperty(value= "余额类型")
    @TableField("`balance_type`")
    private BalanceTypeEnum balanceType;
//wait_goods_roll



    @Excel(name = "结算中提货单")
    @ApiModelProperty(value= "结算中提货单")
    @TableField("`wait_goods_roll`")
    private BigDecimal waitGoodsRoll;


    @Excel(name = "提货单")
    @ApiModelProperty(value= "提货单")
    @TableField("`goods_roll`")
    private BigDecimal goodsRoll;


    @ApiModelProperty(value= "来源（订单sn）")
    @TableField("`source`")
    private String source;

    @ApiModelProperty(value= "提货单结算状态 0 待结算 1 已结算")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty(value= "用户手机号")
    @TableField("`mobile`")
    private String mobile;

    @ApiModelProperty(value= "用户名")
    @TableField(exist = false)
    private String userName;


    @ApiModelProperty(value= "时间搜索")
    @TableField(exist = false)
    private String searchDate;


}
